const columns = [
    {
        prop: 'id',
        label: '试卷编号'
    },
    {
        prop: 'name',
        label: '试卷名称',
        width: 250
    },
    {
        prop: 'score',
        label: '试卷分数',
        width: 100
    },
    {
        prop: 'startTime',
        label: '计划期限(开始)',
        width: 180
    },
    {
        prop: 'endTime',
        label: '计划期限(结束)',
        width: 180
    },
    {
        prop: 'creatorName',
        label: '创建人'
    },
    {
        prop: 'enabled',
        label: '启用'
    },
    {
        label: '操作',
        width: 200,
        operations: [
            {
                prop: 'weight_edit',
                label: '权重分数'
            },
            {
                prop: 'edit',
                label: '编辑'
            },
            {
                prop: 'delete',
                label: '删除'
            }
        ]
    }
]

const addExamFormItems = [
    {
        prop: 'name',
        label: '试卷名称',
        name: 'input',
        validation: true
    },
    {
        label: '试卷分数',
        prop: 'score',
        name: 'input-number'
    },
    {
        label: '启用',
        prop: 'enabled',
        name: 'checkbox'
    },
    {
        prop: 'startTime',
        label: '计划开始时间',
        name: 'startime',
        validation: true
    },
    {
        prop: 'endTime',
        label: '计划结束时间',
        name: 'endtime',
        validation: true
    },
    {
        label: '考试类型*',
        prop: 'practiceType',
        name: 'cascader',
        props: {
            value: 'id',
            label: 'title',
            children: 'children'
        }
    },
    {
        label: '业务模块*',
        prop: 'businessIds',
        type: 'textarea',
        name: 'popup',
        placeholder: '请选择'
    },
    {
        prop: 'comment',
        label: '任务简介',
        type: 'textarea',
        name: 'input'
    }
]

const multistageColumns = [
    {
        label: '名称',
        prop: 'name',
        align: 'center',
        width: '380'
    }
]

const enableOptions = [
    {
        id: true,
        name: '是'
    },
    {
        id: false,
        name: '否'
    }
]

const options = [
    {
        value: 'refresh',
        label: '刷新'
    },
    {
        value: 'batchdelete',
        label: '批量删除'
    }
]

const multistageProps = {
    label: 'name',
    children: 'subClasses'
}
// 数字录入排版
const torgins = [
    {
        title: '数字录入',
        id: 'number',
        children: [
            {
                title: '基本键位练习',
                id: 'basicKeysList'
            },
            {
                title: '食指练习',
                id: 'indexFingerList'
            },
            {
                title: '中指练习',
                id: 'middleFingerList'
            },
            {
                title: '无名指练习',
                id: 'ringFingerList'
            },
            {
                title: '食指中指练习',
                id: 'indexFingerAndMiddleFingerList'
            },
            {
                title: '食指无名指练习',
                id: 'indexFingerAndRingFingerList'
            },
            {
                title: '中指无名指练习练习',
                id: 'middleFingerAndRingFingerList'
            },
            {
                title: '综合练习',
                id: 'comprehensivePractice'
            }
        ]
    },
    {
        title: '传票翻打 (随机)',
        id: 'citation',
        children: [
            {
                title: '第一行',
                id: 'firstLineList'
            },
            {
                title: '第二行',
                id: 'secondLineList'
            },
            {
                title: '第三行',
                id: 'thirdLineList'
            },
            {
                title: '第四行',
                id: 'fourthLineList'
            },
            {
                title: '第五行',
                id: 'fifthLineList'
            }
        ]
    },
    {
        title: '传票翻打 (固定)',
        id: 'citation_fixed',
        children: [
            {
                title: '第一行',
                id: 'firstLineList'
            },
            {
                title: '第二行',
                id: 'secondLineList'
            },
            {
                title: '第三行',
                id: 'thirdLineList'
            },
            {
                title: '第四行',
                id: 'fourthLineList'
            },
            {
                title: '第五行',
                id: 'fifthLineList'
            }
        ]
    },
    {
        title: '培训业务',
        id: 'business'
    }
]
export default {
    columns,
    options,
    torgins,
    enableOptions,
    addExamFormItems,
    multistageProps,
    multistageColumns
}
